
<!--container begin-->
  <div id="container" class="fix">
    <div class="crumb"><a href="/">Home</a> &gt; Order Detail</div>
    <div class="icontainer">
      <div id="main">
        
        <div class="userWrapper">
          <h3>Order Detail</h3>
          <div class="userDes">
            <p>Please check the following information. If you have any question, please contact our customer service team as soon as possible.</p>
            <div class="orderDetail">
              <h4>Item Description</h4>
              <p class="des">Order Number:<span><?php echo $order_info["ordersn"];?></span>
                  &nbsp;&nbsp;&nbsp;Order Status:<span><?php echo $order_info["status"];?></span>
                  <?php if($order_info['status']=='test' || $order_info['status']=='Success'  || $order_info['status']=='paid' ){ ?>
                  &nbsp;&nbsp;&nbsp;Delivery status:
                    <?php if($order_info["shipstatus"]) { ?>
                  Shipped
                  &nbsp;&nbsp;&nbsp;Tracking number:<?php echo $order_info["shipno"]; ?>
                    <?php }else{ ?>
                    Unshipped
                    <?php } ?>
                  <?php }?>
              </p>
              <table class="cartTable">
                <tbody>
                  <tr class="title">
                    <th class="sku">SKU</th>
                    <th class="item">Product Name</th>
                    <th class="size">Size</th>
                    <th class="qty">Qty</th>
                    <th class="price">Price Each</th>
                    <th class="total">Subtotal</th>
                  </tr>
                  <?php foreach ($products as $item):?>
                  <tr>
                    <td class="sku"><?php echo $item['sku'];?></td>
                    <td class="item"><div class="itemImg"><a href="/<?php echo $item['product_url'];?>"><img alt="" src="<?php echo $item['img'];?>" /></a></div>
                      <div class="itemText"><a href="/<?php echo $item['product_url'];?>" title=""><?php echo $item['product_name'];?></a></div></td>
                    <td class="size"><?php echo $item['attr'];?></td>
                    <td class="qty"><?php echo $item['qty'];?></td>
                    <td class="price color01"><?php echo $item['symbol'].$item['price'];?></td>
                    <td class="total color01"><?php echo $item['symbol'].$item['price']*$item['qty'];?></td>
                  </tr>
                  <?php endforeach;?>

                </tbody>
              </table>
              <div class="totalArea">
                <p>Order Subtotal: <?php echo $order_info['total'] - $order_info["shippingfee"];?></p>
                <p>Shipping Fee: <?php echo $order_info['shippingfee'];?></p>
                <p class="orderTotal">Order Total:<?php echo $order_info['total'];?></p>
              </div>
              <div class="totalArea fix">
                <div class="shipAdd">
                  <h4>Shipping Address</h4>
                  <ul>
                    <li>
                      <p><?php echo $order_info['shipaddr']['address'];?></p>
                      <p><?php echo $order_info['shipaddr']['city'];?></p>
                      <p><?php echo $order_info['shipaddr']['state'];?></p>
                      <p>
                      <?php 
                      foreach ($countrys as $item){
                      
							if($item['iso_code'] == $order_info['shipaddr']['country']){
								
								echo $item['name'];
								
								break;

							}	
                      	
                      }?>
                      </p>
                    </li>
                  </ul>
                </div>
                <div class="bilAdd">
                  <h4>Billing Address</h4>
                  <ul>
                    <li>
                     <p><?php echo $order_info['billaddr']['address'];?></p>
                      <p><?php echo $order_info['billaddr']['city'];?></p>
                      <p><?php echo $order_info['billaddr']['state'];?></p>
                      <p><?php 
                      foreach ($countrys as $item){
                      
							if($item['iso_code'] == $order_info['shipaddr']['country']){
								
								echo $item['name'];
								
								break;

							}	
                      	
                      }?></p>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="cartBtn fix">
                  <?php if($order_info["status"] == "pending" || $order_info["status"] == "unpaid"){?>
                  <a href="/continue_pay/<?php echo $order_info["orderid"]; ?>" class="continueBtn">Continue Paying</a></div>
                  <?php }else{?>
                  <a href="/" class="continueBtn">Continue Shopping</a></div>
                  <?php }?>
                  
            </div>
          </div>
        </div>
      </div>
      <div id="aside">
        <h3>My Account</h3>
        <ul class="category">
        <li><a href="/user_mag/myorder" rel="nofollow">My Orders</a></li>
<li><a href="/user_mag/addresslist" rel="nofollow">Address</a></li>
<li><a href="/user_mag/account" rel="nofollow">Account Details</a></li>
<li><a href="/user_mag/question" rel="nofollow">My Question</a></li>
<li><a href="/user_mag/wishlist" rel="nofollow">My Wishllist</a></li>
        </ul>
      </div>
    </div>
  </div>